package com.zxbg.service.systemtoolsService;

import com.zxbg.domain.Process;
import com.zxbg.domain.ProcessRule;
import com.zxbg.domain.ProcessRuleContent;

import java.util.List;
import java.util.Map;

public interface ProcessManagePlatformService {

    public String addRule(ProcessRule processRule);

    public List<ProcessRule> getAllProcessRule(String key, Integer tenant_id, boolean ifSysadmin, String employee_id);

    public boolean updateProcessRule(ProcessRule processRule);

    public boolean deleteProcessRule(String process_rule_code, Integer tenant_id);

    public List<ProcessRuleContent> getProcessRuleContent(String process_rule_code, Integer tenant_id);

    public boolean saveProcessRuleContent(List<ProcessRuleContent> processRuleContentList, Integer tenant_id, Integer status);

    public boolean updateProcessRuleContent(List<ProcessRuleContent> processRuleContentList, Integer tenant_id, Integer status, String employee_id);

    public List<Process> getProcessList(Map<String, Object> search_info, Integer tenant_id, String employee_id);
}
